/**
 * 作者：陈文斌 on 2019/1/18.
 * 邮箱：chen_wennbin@163.com
 * 版本：v1.0
 */

import 'package:json_annotation/json_annotation.dart';
import 'package:crm/model/Company/company_info_model.dart';
import 'package:crm/model/Member/member_model.dart';
import 'package:crm/model/Employee/employee_model.dart';

part 'company_request_model.g.dart';

@JsonSerializable()
class CompanyRequestModel extends Object with _$CompanyRequestModelSerializerMixin {
  String Id;
  String CompanyId;
  CompanyInfoModel Company;
  String UserId;
  MemberModel User;
  String RequestTime;
  int Type;
  int VerifyStatus;
  String ReadTime;
  bool IsRead;
  String Name;
  String JobTitle;
  String Content;
  String CustomExt;
  String EmployeeId;
  EmployeeModel Employee;

  CompanyRequestModel(
    this.Id,
    this.CompanyId,
    this.Company,
    this.UserId,
    this.User,
    this.RequestTime,
    this.Type,
    this.VerifyStatus,
    this.ReadTime,
    this.IsRead,
    this.Name,
    this.JobTitle,
    this.Content,
    this.CustomExt,
    this.EmployeeId,
    this.Employee,
  );

  @override
  factory CompanyRequestModel.fromJson(Map<String, dynamic> json) => _$CompanyRequestModelFromJson(json);
}
